package com.ly.heart.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.KingInvoiceReceivableDetailEntity;
import com.ly.heart.domain.dto.KingSaleOutInventoryMaterialQueryDto;

/**
 * 金蝶-发票-应收单/销售开票明细Mapper接口
 *
 * @author wutao
 * @date 2024-06-26
 */
public interface KingInvoiceReceivableDetailMapper extends BaseMapper<KingInvoiceReceivableDetailEntity> {
    /**
     * 查询金蝶-发票-应收单/销售开票明细
     *
     * @param id 金蝶-发票-应收单/销售开票明细ID
     * @return 金蝶-发票-应收单/销售开票明细
     */
    KingInvoiceReceivableDetailEntity selectKingInvoiceReceivableDetailEntityById ( String id );

    /**
     * 查询金蝶-发票-应收单/销售开票明细列表
     *
     * @param kingInvoiceReceivableDetailEntity 金蝶-发票-应收单/销售开票明细
     * @return 金蝶-发票-应收单/销售开票明细集合
     */
    List<KingInvoiceReceivableDetailEntity> selectKingInvoiceReceivableDetailEntityList ( KingInvoiceReceivableDetailEntity kingInvoiceReceivableDetailEntity );

    /**
     * 新增金蝶-发票-应收单/销售开票明细
     *
     * @param kingInvoiceReceivableDetailEntity 金蝶-发票-应收单/销售开票明细
     * @return 结果
     */
    //int insertKingInvoiceReceivableDetailEntity ( KingInvoiceReceivableDetailEntity kingInvoiceReceivableDetailEntity );

    /**
     * 修改金蝶-发票-应收单/销售开票明细
     *
     * @param kingInvoiceReceivableDetailEntity 金蝶-发票-应收单/销售开票明细
     * @return 结果
     */
    //int updateKingInvoiceReceivableDetailEntity ( KingInvoiceReceivableDetailEntity kingInvoiceReceivableDetailEntity );

    /**
     * 删除金蝶-发票-应收单/销售开票明细
     *
     * @param id 金蝶-发票-应收单/销售开票明细ID
     * @return 结果
     */
    //int deleteKingInvoiceReceivableDetailEntityById ( String id );

    /**
     * 批量删除金蝶-发票-应收单/销售开票明细
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    //int deleteKingInvoiceReceivableDetailEntityByIds ( String[] ids );


    /**
     * 应收单单源单类型为出库单的查询累计应收数量，累计应收价税合计
     */
    KingInvoiceReceivableDetailEntity selectReceivableSumByOutStorageNo ( KingSaleOutInventoryMaterialQueryDto queryDto );

}
